package com.quanyue.haircut.shop.mapper;

import com.quanyue.haircut.domain.entity.Activity;
import com.vhuomai.mybatis.mapper.auto.AutoMapper;
import com.vhuomai.mybatis.mapper.auto.OrderBy;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ActivityMapper extends AutoMapper <Activity, Integer> {
    @OrderBy(value = "create_time")
    List <Activity> findByMerchantNo(@Param("merchantNo") Integer merchantNo);
}
